<?php

class WorkerCaroselController extends Controller
{
	public function actionGetCaroselList()
	{

        try
        {
            //参数验证


            //获取轮播图列表
            $searchsql= Util::initSearchSql();

            //排序
            $searchsql = $searchsql." order by priority  asc";
            //获取list
            $list = WorkerCarousel::model()->findAll($searchsql);


            //返回数据
            Util::responseList(count($list),$list);


        }catch (Exception $e)
        {
            Util::responseErrorMsg($e->getMessage());

        }
	}


}